package com.primb.bench.common.utils;

/**
 * Created by Chen on 2017/9/17.
 * 功能描述：
 * 作者：Chen
 */

public class RoleLevelConvert {

    public static RoleLevel roleConvert(String role) {
        switch (role) {
            case "R005001":
                return RoleLevel.MANAGER;
            case "R004001":
                return RoleLevel.DEPARTMENT;
            case "R003001":
                return RoleLevel.LEADER;
            case "R002001":
                return RoleLevel.RATE_MANGER;
            case "R001002":
                return RoleLevel.LEADER;
            default:
                return RoleLevel.MANAGER;
        }
    }


    public enum RoleLevel {
        MANAGER, RATE_MANGER, DEPARTMENT, LEADER
    }
}
